package com.fishery.refrigeratory.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.refrigeratory.entity.RefrigeratoryAccessInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wgz
 * @since 2021/1/20
 */


public interface RefrigeratoryAccessInfoService extends IService<RefrigeratoryAccessInfo> {
    //增加出入库信息
    Integer createRefrigeratoryAccessInfo(RefrigeratoryAccessInfo refrigeratoryAccessInfo);
    //修改出入库信息
    Integer updateRefrigeratoryAccessInfo(RefrigeratoryAccessInfo refrigeratoryAccessInfo);
    //删除出入库信息
    Integer deleteRefrigeratoryAccessInfo(String id);
    //根据出入库信息id查询出入库信息
    List<RefrigeratoryAccessInfo> getRefrigeratoryAccessInfoById(String id);
    //获得所有的出入库信息
    List<RefrigeratoryAccessInfo> getAllRefrigeratoryAccessInfo();
    //根据冷库id查询出入库信息
    List<RefrigeratoryAccessInfo> getRefrigeratoryAccessInfo(String id);
    //根据冷库id分页查询出入库信息
    Page<RefrigeratoryAccessInfo> getPageRefrigeratoryAccessInfoByrefrigeratoryId(String refrigeratory_id, Integer page, Integer size);
    //分页获取所有的出入库信息
    IPage<RefrigeratoryAccessInfo> getAllRefrigeratoryAccessInfoByrefrigeratoryId(Integer page, Integer size);
}
